<template>
  <div >
    <el-form :model="form" :inline="true" label-width="80px">
      <el-row>
        <el-col :span="4.5">
          <el-form-item label="选择人员" prop="userId">
            <el-select v-model="form.userId" placeholder="请选择">
              <el-option v-for="item in xiaoShou" :key="item.id" :label="item.name" :value="item.id">
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <div class="block" style="margin-left: 20px;">
          <span class="demonstration">选择时间范围</span>
          <el-date-picker v-model="value1" type="datetimerange" range-separator="至" start-placeholder="开始日期"
            end-placeholder="结束日期">
          </el-date-picker>
          <el-button type="primary" @click="saveC" :disabled="!form.userId||!this.value1"  :loading="loging">查询</el-button>
        </div>
      </el-row>
    </el-form>
    <div v-if="none">
    <el-table :data="tableData" border style="width: 100%" :header-cell-style="headClass" :cell-style="rowClass">
      <el-table-column prop="XinCheXiaoLiang" label="新车销量" ></el-table-column>
      <el-table-column prop="ChengQuJiaoFuShuLiang" label="城区交付数量"></el-table-column>
      <el-table-column prop="ChengJiaoJiaoFuShuLiang" label="城郊交付数量"></el-table-column>
      <el-table-column prop="QuYuWaiJiaoFuShuLiang" label="区域外交付数量"></el-table-column>
      <el-table-column prop="XinCheChengJiaoLv" label="新车成交率"></el-table-column>
      <el-table-column prop="ChengQuChengJiaoLv" label="城区成交率"></el-table-column>
      <el-table-column prop="ChengJiaoChengJiaoLv" label="城郊成交率"></el-table-column>
      <el-table-column prop="QuYuWaiChengJiaoLv" label="区域外成交率"></el-table-column>
      <el-table-column prop="ZhanTingXianSuo" label="展厅线索量"></el-table-column>
      <el-table-column prop="ZhanTingLiuDangLiang" label="展厅留档量"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="XinZengLaidian" label="新增来店线索"></el-table-column>
      <el-table-column prop="ChengQuLaiDian" label="城区来店线索"></el-table-column>
      <el-table-column prop="ChengJiaoLaiDian" label="城郊来店线索"></el-table-column>
      <el-table-column prop="QuYuWaiLaiDian" label="区域外来店线索"></el-table-column>
      <el-table-column prop="XinZengLaiDianXianSuo" label="新增来电线索"></el-table-column>
      <el-table-column prop="ChengQuLaiDianXianSuo" label="城区来电线索"></el-table-column>
      <el-table-column prop="ChengJiaoLaiDianXianSuo" label="城郊来电线索"></el-table-column>
      <el-table-column prop="QuYuWaiLaiDianXianSuo" label="区域外来电线索"></el-table-column>
      <el-table-column prop="XinZengLaiDianLiuDangLiang" label="新增来店（电）留档量"></el-table-column>
      <el-table-column prop="ZhanHuiJiWaiTuoXianSuo" label="新增展会及外拓线索"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="XinZengZhanHuiXianSuo" label="新增展会线索"></el-table-column>
      <el-table-column prop="WaiTuoXianSuo" label="新增外拓线索"></el-table-column>
      <el-table-column prop="zhanhuiWaituoLiuDangNums" label="新增展会及外拓留档量"></el-table-column>
      <el-table-column prop="firstLaiDianZongHe" label="首次邀约来店量"></el-table-column>
      <el-table-column prop="firstOneChengQuLaiDian" label="首次邀约城区来店量"></el-table-column>
      <el-table-column prop="firstOneChengJiaoLaiDian" label="首次邀约城郊来店量"></el-table-column>
      <el-table-column prop="firstOneQuYuWaiLaiDian" label="首次邀约区域外来店量"></el-table-column>
      <el-table-column prop="SecondTwoLaiDianZongHe" label="二次及以上来店量"></el-table-column>
      <el-table-column prop="SecondTwoChengQuLaiDian" label="二次邀约及以上城区来店量"></el-table-column>
      <el-table-column prop="SecondTwoChengJiaoLaiDian" label="二次邀约及以上城郊来店量"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="SecondTwoQuYuWaiLaiDian" label="二次邀约及以上区域外来店量"></el-table-column>
      <el-table-column prop="ShiChengShiJiaNum" label="试乘试驾数量"></el-table-column>
      <el-table-column prop="LiuDangLv" label="留档率"></el-table-column>
      <el-table-column prop="ShouCiYaoYueLaiDianLv" label="首次邀约来店率"></el-table-column>
      <el-table-column prop="twoYaoYueLaiDianLv" label="二次及以上邀约来店率"></el-table-column>
      <el-table-column prop="ShiChengShiJiaLv" label="试乘试驾率"></el-table-column>
      <el-table-column prop="LeiJiLeveLHeji" label="累计意向客户级别数量"></el-table-column>
      <el-table-column prop="HLevel" label="H级客户数量"></el-table-column>
      <el-table-column prop="ALevel" label="A级客户数量"></el-table-column>
      <el-table-column prop="BLevel" label="B级客户数量"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="CLevel" label="C级客户数量"></el-table-column>
      <el-table-column prop="XinZengZhanBaiShiKongNum" label="新增战败失控客户数量"></el-table-column>
      <el-table-column prop="XinCheXiaoShouShouRu" label="新车销售收入"></el-table-column>
      <el-table-column prop="XinCheXiaoShouChenBen" label="新车销售成本"></el-table-column>
      <el-table-column prop="XinCheXiaoShouMaoLi" label="新车销售毛利 "></el-table-column>
      <el-table-column prop="XincheXiaoShouMaoLiLv" label="新车销售毛利率"></el-table-column>
      <el-table-column prop="newCarJiaoQiangXianShouRu" label="新车交强险收入"></el-table-column>
      <el-table-column prop="newCarJiaoQiangXianChengBen" label="新车交强险成本"></el-table-column>
      <el-table-column prop="newCarJiaoQiangXianMaoLi" label="新车交强险毛利"></el-table-column>
      <el-table-column prop="newCarJiaoQiangXianMaoLiLv" label="新车交强险毛利率"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="newCarShangYeXianShouRu" label="新车商业险收入"></el-table-column>
      <el-table-column prop="newCarShangYeXianChengBen" label="新车商业险成本"></el-table-column>
      <el-table-column prop="newCarShangYeXianMaoLi" label="新车商业险毛利"></el-table-column>
      <el-table-column prop="newCarShangYeXianMaoLiLv" label="新车商业险毛利率"></el-table-column>
      <el-table-column prop="newCarJingPinXiaoShouShouRu" label="新车精品销售收入"></el-table-column>
      <el-table-column prop="newCarJingPinXiaoShouChengBen" label="新车精品销售成本"></el-table-column>
      <el-table-column prop="newCarJingPinXiaoShouMaoLi" label="新车精品销售毛利"></el-table-column>
      <el-table-column prop="newCarJingPinXiaoShouMaoLiLv" label="新车精品销售毛利率"></el-table-column>
      <el-table-column prop="newCarJingPinZengSongChengBen" label="新车精品赠送成本"></el-table-column>
      <el-table-column prop="newCarJinRongShouRu" label="新车金融服务收入"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="newCarJinRongChengBen" label="新车金融服务成本"></el-table-column>
      <el-table-column prop="newCarJinRongFuWuMaoLi" label="新车金融服务毛利"></el-table-column>
      <el-table-column prop="newCarJinRongMaoLiLv" label="新车金融服务毛利率"></el-table-column>
      <el-table-column prop="newCarBaoYangTaoCanShouRu" label="新车保养套餐收入"></el-table-column>
      <el-table-column prop="newCarBaoYangTaoCanChengBen" label="新车保养套餐成本"></el-table-column>
      <el-table-column prop="newCarBaoYangTaoCanMaoLi" label="新车保养套餐毛利"></el-table-column>
      <el-table-column prop="newCarBaoYangTaoCanMaoLiLv" label="保养套餐毛利率"></el-table-column>
      <el-table-column prop="newCarYanBaoShouRu" label="新车延保收入"></el-table-column>
      <el-table-column prop="newCarYanBaoChengBen" label="新车延保成本"></el-table-column>
      <el-table-column prop="newCarYanBaoMaoLi" label="新车延保毛利"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="newCarYanBaoMaoLiLv" label="新车延保毛利率"></el-table-column>
      <el-table-column prop="newCarDaiBanShangPaiShouRu" label="新车代办上牌收入"></el-table-column>
      <el-table-column prop="newCarDaiBanShangPaiChengBen" label=" 新车代办上牌成本"></el-table-column>
      <el-table-column prop="newCarDaiBanShangPaiMaoLi" label="新车代办上牌毛利"></el-table-column>
      <el-table-column prop="newCarDaiBanShangPaiMaoLiLv" label="新车代办上牌毛利率"></el-table-column>

      <el-table-column prop="XinCheJiaoFuMuBiaoTaiShu" label="新车交付目标台数"></el-table-column>
      <el-table-column prop="xinCheJiaoFuShiJiTaiShu" label="新车交付实际台数"></el-table-column>
      <el-table-column prop="XinCheJiaoFuMuBiaoTaiShuDaChengLv" label="新车交付目标台数达成率"></el-table-column>
      <el-table-column prop="XinCheChengJiaoLv1" label="新车成交率"></el-table-column>
      <el-table-column prop="XinCheJiaoQiangXianMuBiaoTaiShu" label="新车交强险目标台数"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="XinCheJiaoQiangXianShiJiTaiShu" label="新车交强险实际台数"></el-table-column>
      <el-table-column prop="XinCheJiaoQiangXianMuBiaoDaChengLv" label="新车交强险目标达成率"></el-table-column>
      <el-table-column prop="XinCheJiaoQiangXianTouBaoLv" label="新车交强险投保率"></el-table-column>
      <el-table-column prop="XinCheShangYeXianMuBiaoTaiShu" label="新车商业险目标台数"></el-table-column>
      <el-table-column prop="XinCheShangYeXianShiJiTaiShu" label="新车商业险实际台数"></el-table-column>
      <el-table-column prop="XinCheShangYeXianMuBiaoDaChengLv" label="新车商业险目标达成率"></el-table-column>
      <el-table-column prop="XinCheShangYeXianTouBaoLv" label="新车商业险投保率"></el-table-column>
      <el-table-column prop="XinCheJingPinXiaoShouMuBiaoTaiShu" label="新车精品销售目标台数"></el-table-column>
      <el-table-column prop="XinCheJingPinXiaoShouShiJiTaiShu" label="新车精品销售实际台数"></el-table-column>
      <el-table-column prop="XinCheJingPinXiaoShouMuBiaoDaChengLv" label="新车精品销售目标达成率"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="XinCheJingPinXiaoShouLv" label="新车精品销售率"></el-table-column>
      <el-table-column prop="XinCheJinRongCheMuBiaoTaiShu" label="新车金融车目标台数"></el-table-column>
      <el-table-column prop="XinCheJinRongCheXiaoShouShiJiTaiShu" label="新车金融车实际台数"></el-table-column>
      <el-table-column prop="XinCheJinRongCheMuBiaoDaChengLv" label="新车金融车目标达成率"></el-table-column>
      <el-table-column prop="XinCheJinRongCheShenTouLv" label="新车金融车渗透率"></el-table-column>
      <el-table-column prop="XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu" label="新车保养套餐销售目标台数"></el-table-column>

      <el-table-column prop="XinCheBaoYangTaoCanXiaoShouShiJiTaiShu" label="新车保养套餐销售实际台数"></el-table-column>
      <el-table-column prop="XinCheBaoYangTaoCanMuBiaoDaChengLv" label="新车保养套餐销售目标达成率"></el-table-column>
      <el-table-column prop="XinCheBaoYangTaoCanXiaoShouLv" label="新车保养套餐销售率"></el-table-column>
      <el-table-column prop="XinCheYanBaoXiaoShouMuBiaoTaiShu" label="新车延保销售目标台数"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="XinCheYanBaoXiaoShouShiJiTaiShu" label="新车延保销售实际台数"></el-table-column>
      <el-table-column prop="XinCheYanBaoMuBiaoDaChengLv" label="新车延保销售目标达成率"></el-table-column>
      <el-table-column prop="XinCheYanBaoXiaoShouLv" label="新车延保销售率"></el-table-column>
      <el-table-column prop="XinCheDaiBanShangPaiMuBiaoTaiShu" label="新车代办上牌目标台数"></el-table-column>
      <el-table-column prop="XinCheDaiBanShangPaiShiJiTaiShu" label="新车代办上牌实际台数"></el-table-column>
      <el-table-column prop="XinCheDaiBanShangPaiMuBiaoDaChengLv" label="新车代办上牌目标达成率"></el-table-column>
      <el-table-column prop="XinCheDaiBanShangPaiLv" label="新车代办上牌率"></el-table-column>
      <el-table-column prop="XiaoShouZongHeShouRu" label="销售综合收入"></el-table-column>
      <el-table-column prop="XiaoShouZongHeChengBen" label="销售综合成本"></el-table-column>
      <el-table-column prop="XiaoShouZongHeMaoLi" label="销售综合毛利"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="XiaoShouZongHeMaoLiLv" label="销售综合毛利率"></el-table-column>
      <el-table-column prop="name" label="新车延保毛利"></el-table-column>
      <el-table-column prop="name" label="新车延保毛利率"></el-table-column>
      <el-table-column prop="name" label="新车代办上牌收入"></el-table-column>
      <el-table-column prop="name" label="新车代办上牌成本"></el-table-column>
      <el-table-column prop="name" label="新车代办上牌毛利"></el-table-column>
      <el-table-column prop="name" label="新车代办上牌毛利率"></el-table-column>
      <el-table-column prop="name" label="客户转介绍线索"></el-table-column>
      <el-table-column prop="name" label="客户转介绍交付量"></el-table-column>
      <el-table-column prop="date" label="客户转介绍成交率"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%":header-cell-style="headClass":cell-style="rowClass">
      <el-table-column prop="name" label="客户转介绍交付占比"></el-table-column>
      <el-table-column prop="name" label="客诉数量"></el-table-column>
      <el-table-column prop="name" label="客诉级别"></el-table-column>
      <el-table-column prop="name" label="客诉类别"></el-table-column>
      <el-table-column prop="name" label="客诉率"></el-table-column>
      <el-table-column prop="name" label="结案数量"></el-table-column>
      <el-table-column prop="name" label="结案率"></el-table-column>
      <el-table-column prop="" label=""></el-table-column>
      <el-table-column prop="" label=""></el-table-column>
      <el-table-column prop="" label=""></el-table-column>
    </el-table>
</div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        loging:false,//开启懒加载（禁止点击）
        none:false,//是否显示页面
        value1: null,//日期选择器绑定的值
        form: {
          userId:null,
        },
        xiaoShou: [],
        size: 'small',
        tableData: [{
          date: '无',
          name: '无',
          XinCheXiaoLiang:0,
          ChengQuJiaoFuShuLiang:0,
          ChengJiaoJiaoFuShuLiang:0,
          QuYuWaiJiaoFuShuLiang:0,
          XinCheChengJiaoLv:0,
          ChengQuChengJiaoLv:0,
          ChengJiaoChengJiaoLv:0,
          QuYuWaiChengJiaoLv:0,
          ZhanTingXianSuo:0,
          ZhanTingLiuDangLiang:0,
          XinZengLaidian:0,
          ChengQuLaiDian:0,
          ChengJiaoLaiDian:0,
          QuYuWaiLaiDian:0,
          XinZengLaiDianXianSuo:0,
          ChengQuLaiDianXianSuo:0,
          ChengJiaoLaiDianXianSuo:0,
          QuYuWaiLaiDianXianSuo:0,
          XinZengLaiDianLiuDangLiang:0,
          ZhanHuiJiWaiTuoXianSuo:0,
          XinZengZhanHuiXianSuo:0,
          WaiTuoXianSuo:0,
          zhanhuiWaituoLiuDangNums:0,
          firstLaiDianZongHe:0,
          firstOneChengQuLaiDian:0,
          firstOneChengJiaoLaiDian:0,
          firstOneQuYuWaiLaiDian:0,
          SecondTwoLaiDianZongHe:0,
          SecondTwoChengQuLaiDian:0,
          SecondTwoChengJiaoLaiDian:0,
          SecondTwoQuYuWaiLaiDian:0,
          ShiChengShiJiaNum:0,
          LiuDangLv:0,
          ShouCiYaoYueLaiDianLv:0,
          twoYaoYueLaiDianLv:0,
          ShiChengShiJiaLv:0,
          LeiJiLeveLHeji:0,
          HLevel:0,
          ALevel:0,
          BLevel:0,
          CLevel:0,
          XinZengZhanBaiShiKongNum:0,
          XinCheXiaoShouShouRu:0,
          XinCheXiaoShouChenBen:0,
          XinCheXiaoShouMaoLi:0,
          XincheXiaoShouMaoLiLv:0,
          newCarJiaoQiangXianShouRu:0,
          newCarJiaoQiangXianChengBen:0,
          newCarJiaoQiangXianMaoLi:0,
          newCarJiaoQiangXianMaoLiLv:0,
          newCarShangYeXianShouRu:0,
          newCarShangYeXianChengBen:0,
          newCarShangYeXianMaoLi:0,
          newCarShangYeXianMaoLiLv:0,
          newCarJingPinXiaoShouShouRu:0,
          newCarJingPinXiaoShouChengBen:0,
          newCarJingPinXiaoShouMaoLi:0,
          newCarJingPinXiaoShouMaoLiLv:0,
          newCarJingPinZengSongChengBen:0,
          newCarJinRongShouRu:0,
          newCarJinRongChengBen:0,
          newCarJinRongFuWuMaoLi:0,
          newCarJinRongMaoLiLv:0,
          newCarBaoYangTaoCanShouRu:0,
          newCarBaoYangTaoCanChengBen:0,
          newCarBaoYangTaoCanMaoLi:0,
          newCarBaoYangTaoCanMaoLiLv:0,
          newCarYanBaoShouRu:0,
          newCarYanBaoChengBen:0,
          newCarYanBaoMaoLi:0,
          newCarYanBaoMaoLiLv:0,
          newCarDaiBanShangPaiShouRu:0,
          newCarDaiBanShangPaiChengBen:0,
          newCarDaiBanShangPaiMaoLi:0,
          newCarDaiBanShangPaiMaoLiLv:0,

          XinCheJiaoFuMuBiaoTaiShu:0,
          xinCheJiaoFuShiJiTaiShu:0,
          XinCheJiaoFuMuBiaoTaiShuDaChengLv:0,
          XinCheChengJiaoLv1:0,
          XinCheJiaoQiangXianMuBiaoTaiShu:0,
          XinCheJiaoQiangXianShiJiTaiShu:0,
          XinCheJiaoQiangXianMuBiaoDaChengLv:0,
          XinCheJiaoQiangXianTouBaoLv:0,
          XinCheShangYeXianMuBiaoTaiShu:0,
          XinCheShangYeXianShiJiTaiShu:0,
          XinCheShangYeXianMuBiaoDaChengLv:0,
          XinCheShangYeXianTouBaoLv:0,
          XinCheJingPinXiaoShouMuBiaoTaiShu:0,
          XinCheJingPinXiaoShouShiJiTaiShu:0,
          XinCheJingPinXiaoShouMuBiaoDaChengLv:0,
          XinCheJingPinXiaoShouLv:0,
          XinCheJinRongCheMuBiaoTaiShu:0,
          XinCheJinRongCheXiaoShouShiJiTaiShu:0,
          XinCheJinRongCheMuBiaoDaChengLv:0,
          XinCheJinRongCheShenTouLv:0,
          XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu:0,

          XinCheBaoYangTaoCanXiaoShouShiJiTaiShu:0,
          XinCheBaoYangTaoCanMuBiaoDaChengLv:0,
          XinCheBaoYangTaoCanXiaoShouLv:0,
          XinCheYanBaoXiaoShouMuBiaoTaiShu:0,
          XinCheYanBaoXiaoShouShiJiTaiShu:0,
          XinCheYanBaoMuBiaoDaChengLv:0,
          XinCheYanBaoXiaoShouLv:0,
          XinCheDaiBanShangPaiMuBiaoTaiShu:0,
          XinCheDaiBanShangPaiShiJiTaiShu:0,
          XinCheDaiBanShangPaiMuBiaoDaChengLv:0,
          XinCheDaiBanShangPaiLv:0,
          XiaoShouZongHeShouRu:0,
          XiaoShouZongHeChengBen:0,
          XiaoShouZongHeMaoLi:0,
          XiaoShouZongHeMaoLiLv:0,
        }],

      }
    },
    methods: {
      saveC() {
            this.loging = true
        //开始时间
        var y = this.value1[0].getYear()+1900
        var m = this.value1[0].getMonth()+1
        var d = this.value1[0].getDate()
        var s = this.value1[0].getHours()
        var f = this.value1[0].getMinutes()
        var miao  = this.value1[0].getSeconds()
        var startTime1=y+'-'+m+'-'+d+' '+  s+":"+f+":"+miao
        var startTime=startTime1.toString()
        //结束时间
        var y2 = this.value1[1].getYear()+1900
        var m2 = this.value1[1].getMonth()+1
        var d2 = this.value1[1].getDate()
        var s2 = this.value1[1].getHours()
        var f2 = this.value1[1].getMinutes()
        var miao2  = this.value1[1].getSeconds()
        var endTime1 = y2+'-'+m2+'-'+d2+' '+s2+":"+f2+":"+miao2
        var endTime=endTime1.toString()

        //打开遮罩层
        let loading = this.$loading({
          lock: true,
          text: '加载中',
          spinner: 'el-icon-loading',
          background: 'rgba(0, 0, 0, 0.7)'
        })
          Promise.all([
      //新车销量1
        this.$ajax.post('salecom/XinCheXiaoLiang', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheXiaoLiang=result.data
        }),
        //获取城区交付量2
        this.$ajax.post('salecom/ChengQuJiaoFuShuLiang', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ChengQuJiaoFuShuLiang=result.data
        }),
        //获取城郊交付量3
        this.$ajax.post('salecom/ChengJiaoJiaoFuShuLiang', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ChengJiaoJiaoFuShuLiang=result.data
        }),
        //获取区域外交付量4
        this.$ajax.post('salecom/QuYuWaiJiaoFuShuLiang', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].QuYuWaiJiaoFuShuLiang=result.data
        }),
        //新车成交率5
        this.$ajax.post('salecom/XinCheChengJiaoLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheChengJiaoLv=result.data
        }),
        //城区成交率率6
        this.$ajax.post('salecom/ChengQuChengJiaoLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ChengQuChengJiaoLv=result.data
        }),
        //城郊成交率7
        this.$ajax.post('salecom/ChengJiaoChengJiaoLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ChengJiaoChengJiaoLv=result.data
        }),
        // 区域外成交率8
        this.$ajax.post('salecom/QuYuWaiChengJiaoLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].QuYuWaiChengJiaoLv=result.data
        }),
        //展厅线索量9
        this.$ajax.post('salecom/ZhanTingXianSuo', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ZhanTingXianSuo=result.data
        }),
        //展厅留档量10
        this.$ajax.post('salecom/ZhanTingLiuDangLiang', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ZhanTingLiuDangLiang=result.data
        }),
        //新增来店线索11
        this.$ajax.post('salecom/XinZengLaidian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinZengLaidian=result.data
        }),
        //城区来店线索12
        this.$ajax.post('salecom/ChengQuLaiDian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ChengQuLaiDian=result.data
        }),
        //城郊来店线索 13
        this.$ajax.post('salecom/ChengJiaoLaiDian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ChengJiaoLaiDian=result.data
        }),
        //区域外来店线索 14
        this.$ajax.post('salecom/QuYuWaiLaiDian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].QuYuWaiLaiDian=result.data
        }),
        //新增来电线索 15
        this.$ajax.post('salecom/XinZengLaiDianXianSuo', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinZengLaiDianXianSuo=result.data
        }),
        //城区来电线索 16
        this.$ajax.post('salecom/ChengQuLaiDianXianSuo', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ChengQuLaiDianXianSuo=result.data
        }),
        //城郊来电线索 17
        this.$ajax.post('salecom/ChengJiaoLaiDianXianSuo', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ChengJiaoLaiDianXianSuo=result.data
        }),
        //区域外来电线索 18
        this.$ajax.post('salecom/QuYuWaiLaiDianXianSuo', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].QuYuWaiLaiDianXianSuo=result.data
        }),
        //新增来电(店)留档量 19
        this.$ajax.post('salecom/XinZengLaiDianLiuDangLiang', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinZengLaiDianLiuDangLiang=result.data
        }),
        //新增展会及外拓留档量 20
        this.$ajax.post('salecom/zhanhuiWaituoLiuDangNums', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].zhanhuiWaituoLiuDangNums=result.data
        }),
        //新增展会线索 21
        this.$ajax.post('salecom/XinZengZhanHuiXianSuo', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinZengZhanHuiXianSuo=result.data
        }),
        //新增外拓线索 22
        this.$ajax.post('salecom/WaiTuoXianSuo', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].WaiTuoXianSuo=result.data
        }),
        //新增展会及外拓线索 23
        this.$ajax.post('salecom/ZhanHuiJiWaiTuoXianSuo', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ZhanHuiJiWaiTuoXianSuo=result.data
        }),
        //首次邀约来店量 24
        this.$ajax.post('salecom/firstLaiDianZongHe', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].firstLaiDianZongHe=result.data
        }),
        //首次邀约城区来店量 25
        this.$ajax.post('salecom/firstOneChengQuLaiDian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].firstOneChengQuLaiDian=result.data
        }),
        //首次邀约城郊来店量 26
        this.$ajax.post('salecom/firstOneChengJiaoLaiDian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].firstOneChengJiaoLaiDian=result.data
        }),
        //首次邀约区域外来店量 27
        this.$ajax.post('salecom/firstOneQuYuWaiLaiDian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].firstOneQuYuWaiLaiDian=result.data
        }),
        //二次邀约及以上来店量 28
        this.$ajax.post('salecom/SecondTwoLaiDianZongHe', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].SecondTwoLaiDianZongHe=result.data
        }),
        //二次邀约及以上城区来店量 29
        this.$ajax.post('salecom/SecondTwoChengQuLaiDian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].SecondTwoChengQuLaiDian=result.data
        }),
        //二次邀约及以上城郊来店量 30
        this.$ajax.post('salecom/SecondTwoChengJiaoLaiDian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].SecondTwoChengJiaoLaiDian=result.data
        }),
        //二次邀约及以上区域外来店量 31
        this.$ajax.post('salecom/SecondTwoQuYuWaiLaiDian', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].SecondTwoQuYuWaiLaiDian=result.data
        }),
        //试乘试驾数量 32
        this.$ajax.post('salecom/ShiChengShiJiaNum', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ShiChengShiJiaNum=result.data
        }),
        //试乘试驾数量 33
        this.$ajax.post('salecom/LiuDangLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].LiuDangLv=result.data
        }),
        //首次邀约来店率 34
        this.$ajax.post('salecom/ShouCiYaoYueLaiDianLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ShouCiYaoYueLaiDianLv=result.data
        }),
        //二次及以上邀约来店率 35
        this.$ajax.post('salecom/twoYaoYueLaiDianLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].twoYaoYueLaiDianLv=result.data
        }),
        //试乘试驾率 35
        this.$ajax.post('salecom/ShiChengShiJiaLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ShiChengShiJiaLv=result.data
        }),
        //累计意向客户级别数量 43
        this.$ajax.post('salecom/LeiJiLeveLHeji', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].LeiJiLeveLHeji=result.data
        }),
        //H级客户数量 44
        this.$ajax.post('salecom/HLevel', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].HLevel=result.data
        }),
        //A级客户数量 45
        this.$ajax.post('salecom/ALevel', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ALevel=result.data
        }),
        //----40条了---

        //B级客户数量 46
        this.$ajax.post('salecom/BLevel', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].BLevel=result.data
        }),
        //C级客户数量 47
        this.$ajax.post('salecom/CLevel', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].CLevel=result.data
        }),
        //新增战败失控客户数量 48
        this.$ajax.post('salecom/XinZengZhanBaiShiKongNum', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinZengZhanBaiShiKongNum=result.data
        }),
        //战败失控率 49
        this.$ajax.post('salecom/ZhanBaiShiKongLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].ZhanBaiShiKongLv=result.data
        }),
//-----------
        //新车交付目标台数 50
        this.$ajax.post('salecom/XinCheJiaoFuMuBiaoTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJiaoFuMuBiaoTaiShu=result.data
        }),
        //新车交付实际台数   51
        this.$ajax.post('salecom/xinCheJiaoFuShiJiTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].xinCheJiaoFuShiJiTaiShu=result.data
        }),
        //新车交付目标台数达成率   52
        this.$ajax.post('salecom/XinCheJiaoFuMuBiaoTaiShuDaChengLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJiaoFuMuBiaoTaiShuDaChengLv=result.data
        }),
        //新车成交率  53
        this.$ajax.post('salecom/XinCheChengJiaoLv1', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheChengJiaoLv1=result.data
        }),
        //新车交强险目标台数  54
        this.$ajax.post('salecom/XinCheJiaoQiangXianMuBiaoTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJiaoQiangXianMuBiaoTaiShu=result.data
        }),
        //新车交强险实际台数  55
        this.$ajax.post('salecom/XinCheJiaoQiangXianShiJiTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJiaoQiangXianShiJiTaiShu=result.data
        }),
        //新车交强险目标达成率  56
        this.$ajax.post('salecom/XinCheJiaoQiangXianMuBiaoDaChengLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJiaoQiangXianMuBiaoDaChengLv=result.data
        }),
        // 新车交强险投保率  57
        this.$ajax.post('salecom/XinCheJiaoQiangXianTouBaoLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJiaoQiangXianTouBaoLv=result.data
        }),
        //新车商业险目标台数  58
        this.$ajax.post('salecom/XinCheShangYeXianMuBiaoTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheShangYeXianMuBiaoTaiShu=result.data
        }),
        //新车商业险实际台数  59
        this.$ajax.post('salecom/XinCheShangYeXianShiJiTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheShangYeXianShiJiTaiShu=result.data
        }),
        //新车商业险目标达成率  60
        this.$ajax.post('salecom/XinCheShangYeXianMuBiaoDaChengLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheShangYeXianMuBiaoDaChengLv=result.data
        }),
        //新车商业险投保率  61
        this.$ajax.post('salecom/XinCheShangYeXianTouBaoLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheShangYeXianTouBaoLv=result.data
        }),
        //新车精品销售目标台数  62
        this.$ajax.post('salecom/XinCheJingPinXiaoShouMuBiaoTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJingPinXiaoShouMuBiaoTaiShu=result.data
        }),
        //新车精品销售实际台数  63
        this.$ajax.post('salecom/XinCheJingPinXiaoShouShiJiTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJingPinXiaoShouShiJiTaiShu=result.data
        }),
        //新车精品销售目标达成率  64
        this.$ajax.post('salecom/XinCheJingPinXiaoShouMuBiaoDaChengLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJingPinXiaoShouMuBiaoDaChengLv=result.data
        }),
        //新车精品销售率  65
        this.$ajax.post('salecom/XinCheJingPinXiaoShouLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJingPinXiaoShouLv=result.data
        }),
        //新车金融车目标台数  66
        this.$ajax.post('salecom/XinCheJinRongCheMuBiaoTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJinRongCheMuBiaoTaiShu=result.data
        }),
        //新车金融车实际台数  67
        this.$ajax.post('salecom/XinCheJinRongCheXiaoShouShiJiTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJinRongCheXiaoShouShiJiTaiShu=result.data
        }),
        //新车金融车目标达成率  68
        this.$ajax.post('salecom/XinCheJinRongCheMuBiaoDaChengLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJinRongCheMuBiaoDaChengLv=result.data
        }),
        //新车金融车渗透率  69
        this.$ajax.post('salecom/XinCheJinRongCheShenTouLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheJinRongCheShenTouLv=result.data
        }),
        //新车保养套餐销售目标台数  70
        this.$ajax.post('salecom/XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu=result.data
        }),

        //新车保养套餐销售实际台数  71
        this.$ajax.post('salecom/XinCheBaoYangTaoCanXiaoShouShiJiTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheBaoYangTaoCanXiaoShouShiJiTaiShu=result.data
        }),
        //新车保养套餐销售目标达成率  72
        this.$ajax.post('salecom/XinCheBaoYangTaoCanMuBiaoDaChengLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheBaoYangTaoCanMuBiaoDaChengLv=result.data
        }),
        //新车保养套餐销售率  73
        this.$ajax.post('salecom/XinCheBaoYangTaoCanXiaoShouLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheBaoYangTaoCanXiaoShouLv=result.data
        }),
        //新车延保销售目标台数  74
        this.$ajax.post('salecom/XinCheYanBaoXiaoShouMuBiaoTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheYanBaoXiaoShouMuBiaoTaiShu=result.data
        }),
        //新车延保销售实际台数 75
        this.$ajax.post('salecom/XinCheYanBaoXiaoShouShiJiTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheYanBaoXiaoShouShiJiTaiShu=result.data
        }),
        //新车延保销售目标达成率 76
        this.$ajax.post('salecom/XinCheYanBaoMuBiaoDaChengLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheYanBaoMuBiaoDaChengLv=result.data
        }),
        // 新车延保销售率 77
        this.$ajax.post('salecom/XinCheYanBaoXiaoShouLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheYanBaoXiaoShouLv=result.data
        }),
        // // 新车代办上牌目标台数 78
        // this.$ajax.post('salecom/XinCheDaiBanShangPaiMuBiaoTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
        //   var result = res.data
        //   this.tableData[0].XinCheDaiBanShangPaiMuBiaoTaiShu=result.data
        // }),
        // //新车代办上牌实际台数 79
        // this.$ajax.post('salecom/XinCheDaiBanShangPaiShiJiTaiShu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
        //   var result = res.data
        //   this.tableData[0].XinCheDaiBanShangPaiShiJiTaiShu=result.data
        // }),
        // //新车代办上牌目标达成率 80
        // this.$ajax.post('salecom/XinCheDaiBanShangPaiMuBiaoDaChengLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
        //   var result = res.data
        //   this.tableData[0].XinCheDaiBanShangPaiMuBiaoDaChengLv=result.data
        // }),
        // //新车代办上牌率 81
        // this.$ajax.post('salecom/XinCheDaiBanShangPaiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
        //   var result = res.data
        //   this.tableData[0].XinCheDaiBanShangPaiLv=result.data
        // }),
        //销售综合收入  82
        this.$ajax.post('salecom/XiaoShouZongHeShouRu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XiaoShouZongHeShouRu=result.data
        }),
        //销售综合成本  83
        this.$ajax.post('salecom/XiaoShouZongHeChengBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XiaoShouZongHeChengBen=result.data
        }),
        //销售综合毛利  84
        this.$ajax.post('salecom/XiaoShouZongHeMaoLi', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XiaoShouZongHeMaoLi=result.data
        }),
        //销售综合毛利率  85
        this.$ajax.post('salecom/XiaoShouZongHeMaoLiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XiaoShouZongHeMaoLiLv=result.data
        }),



        //新车销售收入 86
        this.$ajax.post('salecom/XinCheXiaoShouShouRu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheXiaoShouShouRu=result.data
        }),
        //新车销售成本 87
        this.$ajax.post('salecom/XinCheXiaoShouChenBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheXiaoShouChenBen=result.data
        }),
        //新车销售毛利 88
        this.$ajax.post('salecom/XinCheXiaoShouMaoLi', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XinCheXiaoShouMaoLi=result.data
        }),
        //新车销售毛利率 89
        this.$ajax.post('salecom/XincheXiaoShouMaoLiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].XincheXiaoShouMaoLiLv=result.data
        }),
        //新车交强险收入(新车交强险毛利+新车交强险成本) 90
        this.$ajax.post('salecom/newCarJiaoQiangXianShouRu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJiaoQiangXianShouRu=result.data
        }),
        //新车交强险成本(录入交强险金额-交强险毛利) 91
        this.$ajax.post('salecom/newCarJiaoQiangXianChengBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJiaoQiangXianChengBen=result.data
        }),
        //--50

        //新车交强险毛利(录入交强险金额*交强险返利点) 92
        this.$ajax.post('salecom/newCarJiaoQiangXianMaoLi', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJiaoQiangXianMaoLi=result.data
        }),
        //新车交强险毛利率(新车交强险毛利/新车交强险收入) 93
        this.$ajax.post('salecom/newCarJiaoQiangXianMaoLiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJiaoQiangXianMaoLiLv=result.data
        }),
        //新车商业险收入(新车商业险收入-新车商业险成本) 94
        this.$ajax.post('salecom/newCarShangYeXianShouRu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarShangYeXianShouRu=result.data
        }),
        //新车商业险成本(录入商业险金额-商业险收入) 95
        this.$ajax.post('salecom/newCarShangYeXianChengBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarShangYeXianChengBen=result.data
        }),
        //新车商业险毛利(录入商业险金额*商业险返利点) 96
        this.$ajax.post('salecom/newCarShangYeXianMaoLi', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarShangYeXianMaoLi=result.data
        }),
        //新车商业险毛利率(新车商业险毛利/新车商业险收入) 97
        this.$ajax.post('salecom/newCarShangYeXianMaoLiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarShangYeXianMaoLiLv=result.data
        }),
        //新车精品销售收入(精品材料价格+精品工时价格) 98
        this.$ajax.post('salecom/newCarJingPinXiaoShouShouRu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJingPinXiaoShouShouRu=result.data
        }),
        //新车精品销售成本(精品材料成本+精品工时成本) 99
        this.$ajax.post('salecom/newCarJingPinXiaoShouChengBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJingPinXiaoShouChengBen=result.data
        }),
        //新车精品销售毛利(新车精品销售收入-新车精品销售成本) 100
        this.$ajax.post('salecom/newCarJingPinXiaoShouMaoLi', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJingPinXiaoShouMaoLi=result.data
        }),
        //新车精品销售毛利率(新车精品销售毛利/新车精品销售收入) 101
        this.$ajax.post('salecom/newCarJingPinXiaoShouMaoLiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJingPinXiaoShouMaoLiLv=result.data
        }),
        //新车精品赠送成本(精品材料成本+精品工时成本) 102
        this.$ajax.post('salecom/newCarJingPinZengSongChengBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJingPinZengSongChengBen=result.data
        }),
        //新车金融服务收入（成本+毛利） 103
        this.$ajax.post('salecom/newCarJinRongShouRu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJinRongShouRu=result.data
        }),
        //新车金融服务成本(录入金融金额-金融毛利) 104
        this.$ajax.post('salecom/newCarJinRongChengBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJinRongChengBen=result.data
        }),
        // 新车金融服务毛利(输入的金融金额*金融公司返利点) 105
        this.$ajax.post('salecom/newCarJinRongFuWuMaoLi', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJinRongFuWuMaoLi=result.data
        }),
        //新车金融服务毛利率（毛利/收入） 106
        this.$ajax.post('salecom/newCarJinRongMaoLiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarJinRongMaoLiLv=result.data
        }),
        // 新车保养套餐收入(保养套餐价格) 107
        this.$ajax.post('salecom/newCarBaoYangTaoCanShouRu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarBaoYangTaoCanShouRu=result.data
        }),
        //新车保养套餐成本(保养套餐成本) 108
        this.$ajax.post('salecom/newCarBaoYangTaoCanChengBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarBaoYangTaoCanChengBen=result.data
        }),
        // 新车保养套餐毛利(保养套餐收入-保养套餐成本) 109
        this.$ajax.post('salecom/newCarBaoYangTaoCanMaoLi', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarBaoYangTaoCanMaoLi=result.data
        }),
        //保养套餐毛利率(保养套餐毛利/保养套餐收入) 110
        this.$ajax.post('salecom/newCarBaoYangTaoCanMaoLiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarBaoYangTaoCanMaoLiLv=result.data
        }),
        //新车延保收入(延保价格) 111
        this.$ajax.post('salecom/newCarYanBaoShouRu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarYanBaoShouRu=result.data
        }),
        // 新车延保成本(延保成本) 112
        this.$ajax.post('salecom/newCarYanBaoChengBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarYanBaoChengBen=result.data
        }),
        //新车延保毛利（新车延保收入-新车延保成本） 113
        this.$ajax.post('salecom/newCarYanBaoMaoLi', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarYanBaoMaoLi=result.data
        }),
        // 新车延保毛利率（新车延保毛利/新车延保收入） 114
        this.$ajax.post('salecom/newCarYanBaoMaoLiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarYanBaoMaoLiLv=result.data
        }),
        // 新车代办上牌收入（成本+毛利） 115
        this.$ajax.post('salecom/newCarDaiBanShangPaiShouRu', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarDaiBanShangPaiShouRu=result.data
        }),
        //新车代办上牌成本(录入车牌金额-车牌毛利) 116
        this.$ajax.post('salecom/newCarDaiBanShangPaiChengBen', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarDaiBanShangPaiChengBen=result.data
        }),
        // 新车代办上牌毛利(输入的车牌公司金额*车牌公司返利点) 117
        this.$ajax.post('salecom/newCarDaiBanShangPaiMaoLi', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarDaiBanShangPaiMaoLi=result.data
        }),
        //新车代办上牌毛利率（毛利/收入） 118
        this.$ajax.post('salecom/newCarDaiBanShangPaiMaoLiLv', {"id":this.form.userId,"beginDate":startTime,"endDate":endTime}).then(res => {
          var result = res.data
          this.tableData[0].newCarDaiBanShangPaiMaoLiLv=result.data
        })
            ]).then(()=>{
              loading.close();//关闭遮罩层
          })



          this.none =true
          setTimeout(()=>{
            this.loging = false
            loading.close();
          },15000)

      },

      //获取销售部所有人员
      getShouHou() {
        this.$ajax.post('AfterSaleTargetZ2Controller/findxiaoShou', {}).then(res => {
          var result = res.data
          this.xiaoShou = result.data
        })
      },
      //行和列的样式
        headClass () {
          return 'text-align: center;background:#eef1f6;'
        },
        rowClass () {
            return 'text-align: center;'
        }
    },
    created() {
      this.getShouHou()
       // this.$ajax.post('/xiaoShouTuBiao/cheLiangXiaoShouPaiMing', {}).then(res => {
       //     var result = res.data
       //     console.log(result);
       //   });
       //   this.$ajax.post('/xiaoShouTuBiao/monthQicheXiaoLiang', {}).then(res => {
       //     var result = res.data
       //     console.log(result);
       //   });
       //   this.$ajax.post('/xiaoShouTuBiao/yearQicheXiaoLiang', {}).then(res => {
       //     var result = res.data
       //     console.log(result);
       //   })
         this.$ajax.post('/shouye/nianShouYiYiLan', {}).then(res => {
           var result = res.data
           console.log(result);
         })
    }
  }
</script>

<style>
  .el-table .warning-row {
    background: oldlace;
  }

  .el-table .success-row {
    background: #f0f9eb;
  }
  .el-table__row:hover > td {

      background-color: #ffffff !important;

  }

  .el-table__row--striped:hover > td {

      background-color: #fafafa !important;

  }
  .none{
    display: none;
  }

</style>
